#include "screenboxobject.h"

ScreenBoxObject::ScreenBoxObject() { clear(); }
ScreenBoxObject::~ScreenBoxObject() { clear(); }

void
ScreenBoxObject::clear()
{
  m_pos = QPointF(0,0);
  m_lod = 1;
  m_sizex = m_sizey = 0.1f;
}

void
ScreenBoxObject::setScreenBox(ScreenBoxObject co)
{
  m_pos = co.position();
  m_lod = co.lod();
  co.size(m_sizex, m_sizey);
}

void
ScreenBoxObject::set(QPointF pos, int l, float x, float y)
{
  m_pos = pos;
  m_lod = l;
  m_sizex = x;
  m_sizey = y;
}

void ScreenBoxObject::setLod(int l) { m_lod = l; }
int ScreenBoxObject::lod() { return m_lod; }

void ScreenBoxObject::setPosition(QPointF pos) { m_pos = pos; }
QPointF ScreenBoxObject::position() { return m_pos; }

void ScreenBoxObject::setSize(float x, float y) { m_sizex = x; m_sizey = y; }
void ScreenBoxObject::size(float &x, float &y)  { x = m_sizex; y = m_sizey; }
